const express =require('express')
const router = express.Router()
module.exports = router

router.use(
    express.json(),
    express.urlencoded({extended:true})
)

const userRouter = require('./user')
const regRouter = require('./reg')
const loginRouter = require('./login')
const goodslistRouter = require('./goodslist')
const viewRouter = require('./view')

router.use('/user',userRouter)
router.use('/',regRouter)
router.use('/',loginRouter)
router.use('/',goodslistRouter)
router.use('/',viewRouter)